<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3.16.jQuery常用API-jQuery多库共存</title>
    <script src="jquery.min.js"></script>
    <script>
        $(function () {
            function $(ele) {
                return document.querySelector(ele);
            }
            $("div")
            console.log($("div"));
            // 1.如果$符号冲突 就用jQuery
            jQuery.each();
            // 2.让jQuery 释放$ 控制权，让用户自己决定
            var suibian = jQuery.noConflict()
            console.log(suibian("span"));
            suibian.each();
        })
    </script>
</head>

<body>
    <div></div>
    <span></span>
</body>

</html>